package com.wuzhi.common.exception;

/**
 *
 */

public enum BizCodeEnum {
    UNKNOWN_EXCEPTION(10000,"未知异常"),
    VALID_EXCEPTION(10001,"参数格式校验失败"),
    SMS_CODE_EXCEPTION(10002,"验证码获取频率高,莫慌！"),
    USER_EXIST_EXCEPTION(150001,"用户存在"),
    PHONE_EXIST_EXCEPTION(150002,"电话号码存在"),
    LOGIN_ACCOUNT_PASSWORD_INVAliD_EXCEPTION(150003,"用户名或者密码不对");


    private  int code;
    private String msg;
    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
